﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace FourSquareNETCFLibrary
{
    public class beenhere
    {
        private bool _me;
        private bool _friends;

        public beenhere(XmlNode Xml)
        {
            XmlNodeList xnl = Xml.ChildNodes;

            foreach (XmlNode xn in xnl)
            {
                switch (xn.Name)
                {
                    case "me":
                        if (xn.InnerText == "true") this._me = true;
                        if (xn.InnerText == "false") this._me = false;
                        break;
                    case "friends":
                        if (xn.InnerText == "true") this._friends = true;
                        if (xn.InnerText == "false") this._friends = false;
                        break;
                }
            }
        }

        public bool Me
        {
            get
            {
                return this._me;
            }
        }

        public bool Friends
        {
            get
            {
                return this._friends;
            }
        }
    }
}
